﻿
/*
*      
*          ┌─┐       ┌─┐
*       ┌──┘ ┴───────┘ ┴──┐
*       │                 │
*       │       ───       │
*       │  ─┬┘       └┬─  │
*       │                 │
*       │       ─┴─       │
*       │                 │
*       └───┐         ┌───┘
*           │         │
*           │         │
*           │         │
*           │         └──────────────┐
*           │                        │
*           │                        ├─┐
*           │                        ┌─┘    
*           │                        │
*           └─┐  ┐  ┌───────┬──┐  ┌──┘         
*             │ ─┤ ─┤       │ ─┤ ─┤         
*             └──┴──┘       └──┴──┘ 
*                 神兽保佑 
*                 代码无BUG! 
*  Author shang
*  2022-07-21 18:30:27
*/

using SqlSugar;
using TS.Common.Db;

namespace TS.Model;

[SugarTable("TaskOptions")]
public class TaskOptions:IDbModel
{
    [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
    public int ID { get; set; }
    public string TaskName { get; set; }
    public string GroupName { get; set; }
    public string Interval { get; set; }
    public string ApiUrl { get; set; } = "";
    public string AuthKey { get; set; } = "";
    public string AuthValue { get; set; } = "";
    public string Describe { get; set; } = "";
    public int SshServerID { get; set; }
    public string shell { get; set; } = "";
    public string RequestType { get; set; }
    [SugarColumn(IsNullable =true)]
    public DateTime? LastRunTime { get; set; }
    public int Status { get; set; } = 0;
    [SugarColumn(IsIgnore =true)]
    public List<int> ids { get; set; }
}